Objects Reference

textcacheGL::use_triangles

Prototype

inline void use_triangles(int pic=-1,int textunit=0)

Parameters

Parameter Type Description
pic int picture index to select
textunit int texture unit to select

Return Value

None

Remarks

This is the OpenGL implementation for the textcache base class virtual function.

This function selects a picture to be used in the specified texture unit. The texture unit remains selected and active after the call. Calling this function with pic=-1 will disable texturing in the specified texture unit. The number of texture units available is at the ntextureunits global variable. This is a variation of the use function that can be called between glBegin/glEnd pairs.